package com.dorado.example.pojo;

import com.dorado.kernel.excel.annotation.CellField;
import com.dorado.kernel.excel.resolver.ExcelAble;
import lombok.Data;


@Data
public class Clerk implements ExcelAble {

    @CellField( title = "姓名"/*,groupsClass = {GroupA.class,GroupB.class}*/)
    private String name;

    @CellField( title = "年龄" /*,groupsClass = GroupB.class*/)
    private String age;

    @CellField( title = "收益" /*,groupsClass = GroupA.class*/)
    private Integer income;

    public Clerk() {
    }

    public interface GroupA{}  //A分组
    public interface GroupB{}  //B分组  这个可以写在任何地方。

    public Clerk(String name, String age, Integer income) {
        this.name = name;
        this.age = age;
        this.income = income;
    }
}
